<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <link rel="stylesheet" href="../css/step1.css">

    <nav class="navbar navbar-light bg-light border-bottom">
        <h3>
            跟我一步步学WebRTC
        </h3>
    </nav>
    <div class="container pt-4">
        <div class="row" id="start-btns">
            <div class="col-12">
                <button type="button" class="btn btn-primary" onclick="start()">
                    获取摄像头
                </button>
            </div>
            <div class="col-12">
                <button type="button" class="btn btn-primary" onclick="stop()">
                    关闭摄像头
                </button>
            </div>
        </div>
        <div class="row">
            <video class="video" autoplay playsinline id="local-video" width="640" height="480"></video>
            <script type="text/javascript" src="./js/camera.js"></script>
        </div>
    </div>
</body>

</html>
